package com.sekill.goods.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author huhu
 * @since 2021-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_seckill")
public class Seckill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 库存对应的商品sku id
     */
    private Long skuId;

    /**
     * 秒杀价格
     */
    private BigDecimal seckillPrice;

    /**
     * 秒杀开始时间
     */
    private Date seckillCreatedate;

    /**
     * 秒杀结束时间
     */
    private Date seckillEnddate;

    /**
     * 秒杀修改时间
     */
    private Date seckillUpdate;

    /**
     * 秒杀商品 上架1 下架2
     */
    private Integer status;


    @TableField(exist = false)
    private String title;

    /**
     * 商品的图片，多个图片以‘,’分割
     */
    @TableField(exist = false)
    private String images;

    /**
     * 秒杀商品 上架1 下架2
     */
    @TableField(exist = false)
    private Integer times;
    //秒杀数量
    @TableField(exist = false)
    private Integer seckillStock;

}
